package com.zhao;


import com.zhao.component.FastFood;
import com.zhao.concretecomponent.FiredRice;
import com.zhao.concretedecorator.Egg;

public class Client {
    public static void main(String[] args) {
        FastFood firedRice = new FiredRice("炒饭", 10);
        System.out.println(firedRice.getDesc() + " 花费：" + firedRice.cost());

        System.out.println("========================");

        firedRice = new Egg("蛋炒饭", 2, firedRice);
        System.out.println(firedRice.getDesc() + " 花费：" + firedRice.cost());

        System.out.println("========================");

        firedRice = new Egg("蛋炒饭", 2, firedRice);
        System.out.println(firedRice.getDesc() + " 花费：" + firedRice.cost());

    }
}
